package com.jzbooks.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mingPeng
 * @date 2021/4/27 15:33
 * @Description :
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("记录书籍评分")
@TableName(value = "score")
public class Score extends BaseEntity{

    @ApiModelProperty(value = "评分")
    @TableField(value = "score")
    private Integer score;

    @ApiModelProperty(value = "评价用户id")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "评价书籍id")
    @TableField(value = "book_id")
    private Integer bookId;

    public static final String COL_SCORE = "score";

    public static final String COL_BOOK_ID = "book_id";

    public static final String COL_USER_ID = "user_id";


}
